import { PresetCategory, Preset } from './preset.types';

export const PRESET_CATEGORIES: PresetCategory[] = [
  {
    id: 'style',
    name: '艺术风格',
    description: '不同的艺术风格预设',
    icon: 'palette'
  },
  {
    id: 'quality',
    name: '质量优化',
    description: '图像质量相关的预设',
    icon: 'high-quality'
  },
  {
    id: 'scene',
    name: '场景类型',
    description: '不同场景的预设',
    icon: 'landscape'
  }
];

const now = new Date();

export const BASE_PRESETS: Preset[] = [
  {
    name: '动漫风格',
    category: 'style',
    description: '适合生成动漫风格的图像',
    preview_image: '/presets/anime.jpg',
    template_type: 'text2img',
    params: {
      prompt: 'anime style, high quality, masterpiece',
      negative_prompt: 'realistic, photo-realistic, low quality',
      steps: 28,
      cfg_scale: 7,
      sampler: 'euler_a'
    },
    tags: ['anime', 'cartoon', 'illustration'],
    created_at: now,
    updated_at: now
  },
  {
    id: 'realistic_photo',
    name: '写实风格',
    category: 'style',
    description: '适合生成写实风格的图像',
    preview_image: '/presets/realistic.jpg',
    template_type: 'text2img',
    params: {
      prompt: 'photorealistic, high quality, masterpiece',
      negative_prompt: 'cartoon, anime, illustration',
      steps: 30,
      cfg_scale: 7.5,
      sampler: 'dpm++_2m'
    },
    tags: ['realistic', 'photo', 'high-quality'],
    created_at: now,
    updated_at: now
  },

  // 质量优化预设
  {
    id: 'high_quality',
    name: '高质量',
    category: 'quality',
    description: '高质量图像生成设置',
    template_type: 'text2img',
    params: {
      steps: 40,
      cfg_scale: 9,
      width: 768,
      height: 768,
      sampler: 'dpm++_2m'
    },
    tags: ['quality', 'optimization'],
    created_at: now,
    updated_at: now
  },

  // 场景预设
  {
    id: 'landscape',
    name: '风景',
    category: 'scene',
    description: '风景照片优化设置',
    preview_image: '/presets/landscape.jpg',
    template_type: 'text2img',
    params: {
      prompt: 'beautiful landscape, scenic view, high detail',
      negative_prompt: 'people, faces, text, watermark',
      width: 896,
      height: 512,
      cfg_scale: 8
    },
    tags: ['landscape', 'nature', 'scenic'],
    created_at: now,
    updated_at: now
  }
]; 